package com.seventh.associationsystem.bean;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "ad_field_application")
public class FieldApplication extends Application {

    // 申请场地
    private String field;

    // 申请场地的开始时间
    private Date startTime;

    // 申请场地的结束时间
    private Date endTime;

    // 申请社团
    @ManyToOne
    private Association association;
}
